package com.study.entity;  

import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**  
 *  实体类
 */  
public class Complaints  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String name;  //投诉对象
    private String reason;  //理由
    private String userid;
	@DateTimeFormat(pattern="yyyy-MM-dd")
    private Date cpTime;  //投诉时间
	
	private Date orderTime;
    /********** 构造方法 ***********/  
    public Complaints() {  
      
    }  
  
    public Complaints(String name, String reason, Date cpTime) {  
        this.name = name;  
        this.reason = reason;  
        this.cpTime = cpTime;  
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }
    
      
    public String getReason() {  
        return reason;  
    }  
  
    public void setReason(String reason) {  
        this.reason = reason;  
    }
    
      
    public Date getCpTime() {  
        return cpTime;  
    }  
  
    public void setCpTime(Date cpTime) {  
        this.cpTime = cpTime;  
    }
    
      public String getUserid() {
		return userid;
	}
      
      public void setUserid(String userid) {
		this.userid = userid;
	}
      
      public Date getOrderTime() {
		return orderTime;
	}
      
      public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
      

	@Override
	public String toString() {
		return "Complaints [id=" + id 
				+ ", name=" + name
				+ ", reason=" + reason
				+ ", cpTime=" + cpTime
				+ "]";
    }
}